#include "stdafx.h"
#include "AttackWallMediator.h"
//#include "Enemy.h"

AttackWallMediator::AttackWallMediator(void) : m_target(nullptr)
{
}

AttackWallMediator::~AttackWallMediator(void)
{
}

//void AttackWallMediator::AddEnemy(Enemy* enemy)
//{
//	m_enemies.push_back(enemy);
//}

void AttackWallMediator::AddTarget(Entity* target)
{
	m_target = target;
}

void AttackWallMediator::RemoveTarget()
{
	m_target = nullptr;
}

//void AttackWallMediator::RemoveEnemy(Enemy* enemy)
//{
//	for (unsigned int i = 0; i < m_enemies.size(); i++)
//	{
//		if (m_enemies[i] == enemy)
//		{
//			m_enemies.erase(m_enemies.begin() + i);
//			break;
//		}
//	}
//}

Entity* AttackWallMediator::GetTarget()
{
	return m_target;
}